package com.android.common.result.contract;

import android.net.Uri;

public class CropImage {
    float aspectX;
    float aspectY;
    int width;
    int height;
    Uri inPutUri;
    Uri outPutUri;

    CropImage(Builder builder){
        aspectX = builder.aspectX;
        aspectY = builder.aspectY;
        width = builder.width;
        height = builder.height;
        inPutUri = builder.inPutUri;
        outPutUri = builder.outPutUri;
    }

    public static class Builder {
        float aspectX;
        float aspectY;
        int width;
        int height;
        Uri inPutUri;
        Uri outPutUri;

        public float getAspectX() {
            return aspectX;
        }

        public Builder setAspectX(float aspectX) {
            this.aspectX = aspectX;
            return this;
        }

        public float getAspectY() {
            return aspectY;
        }

        public Builder setAspectY(float aspectY) {
            this.aspectY = aspectY;
            return this;
        }

        public int getWidth() {
            return width;
        }

        public Builder setWidth(int width) {
            this.width = width;
            return this;
        }

        public int getHeight() {
            return height;
        }

        public Builder setHeight(int height) {
            this.height = height;
            return this;
        }

        public Uri getInPutUri() {
            return inPutUri;
        }

        public void setInPutUri(Uri inPutUri) {
            this.inPutUri = inPutUri;
        }

        public Uri getOutPutUri() {
            return outPutUri;
        }

        public void setOutPutUri(Uri outPutUri) {
            this.outPutUri = outPutUri;
        }

        public CropImage build(){
            return new CropImage(this);
        }
    }
}
